package InterfaceBlogDemo.AnimalFile;

public class Dog extends Animal implements IRunning,ISwimming{
    public Dog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println("狗跑");
    }

    @Override
    public void swim() {
        System.out.println("狗游");
    }
}
